package com.xiaoshi.system.controller;


import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DateUtil;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * <p>
 * 用户角色关联表 前端控制器
 * </p>
 *
 * @author yuankai
 * @since 2022-03-23
 */
@Controller
@RequestMapping("/system/sys-user-dept")
public class SysUserDeptController {

    public static void main(String[] args) {
        LocalTime time = LocalTime.parse("20:13:54");


        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        LocalDate date13 = LocalDate.parse("2018-04-20", dtf); // 2018-04-20
        DateTimeFormatter dtf1 = DateTimeFormatter.ofPattern("HH:mm");



        LocalTime date14 = LocalTime.parse("20:13", dtf1); // 2018-04-20
        System.out.println(date13);
        System.out.println(date14);


    }

}
